/**
 * 
 */
package org.gaming.common.advice;

import org.gaming.common.asserts.ITipCause;

/**
 * @author YY
 *
 */
public class ResponseResult<T> {
	private int code;
	private String message;
	private T data;
	
	public ResponseResult() {}
	public ResponseResult(ITipCause tipCause) {
		this.code = tipCause.getCode();
		this.message = tipCause.getMessage();
	}
	
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
}
